#pragma once
#include "IUIDialog.h"

using namespace UILib;
enum{
    ID_BKG = 1,
    ID_Close,
    ID_Mini,
    ID_MinMaxLayout,
    ID_BottomLayout,
};

typedef struct ResizeRoundObserver : public BaseCustomObserver{
    virtual bool IsRoundConner() { return true; };
}ResizeRoundObserver, *PResizeRoundObserver;
class CUITest : public ViewListener,
    public UITreeObserver,
    public DialogEvent
{
public:
    CUITest(void);
    virtual ~CUITest(void);

    void Init();

     virtual void OnClick( const UINT uID );

     virtual void OnSizeChange( const SIZE szClient );
     virtual void OnClose();
private:
    void OnCloseBtn();
    void OnMiniBtn();
private:
    IUIDialog* pDialog_;
};
